package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<String> selectAllExpression();

    int updateByPrimaryKey(Permission record);

    //int selectForCount(QueryObject qo);

    List<Permission> selectForList(QueryObject qo);

    void insertRelation(@Param("permissionId") Long permissionId, @Param("roleId") Long roleId);

    List<Permission> selectAll();

    List<String> selectExpressionByEmpId(Long id);
}